package com.sky.service.user;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;
import com.sky.result.Result;

import java.util.List;

public interface ShoppingCartService extends IService<ShoppingCart> {
   void addShoppingCartItem(ShoppingCartDTO dto);

    Result<List<ShoppingCart>> getShoppingCartItems(Long id);

    Result<Object> cleanShoppingCart(Long userId);

    Result<Object> subShoppingCartByUserId(ShoppingCartDTO dto, Long userId);
}
